//
//  CurrentUser.h
//  SportSocial
//
//  Created by yull on 14/12/21.
//  Copyright (c) 2014年 yull. All rights reserved.
//

#import "UserModel.h"

@class GroupInfo;

@interface CurrentUser : UserModel

+ (CurrentUser *)shareInstance;

@property (nonatomic, assign) BOOL isLogin;

@property (nonatomic, copy) NSString *friendMd5;

@property (nonatomic, copy) NSArray *friendList;

@property (nonatomic, strong) NSMutableArray *groupList;

@property (nonatomic, copy) NSString *deviceToken;

- (void)updateWithDict:(NSDictionary *)dict;

- (BOOL)isMyFriend:(UInt64)friendID;

- (BOOL)isMyGroup:(UInt64)groupID;

- (void)addGroup:(GroupInfo *)groupInfo;

- (void)deleteGroup:(UInt64)groupID;

- (BOOL)isGroup:(UInt64)groupID containUser:(UInt64)friendID;

@end
